package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 行政区划对象 sys_region
 *
 * @author kerwincui
 * @date 2024-07-29
 */
public class SysRegion {
    private static final long serialVersionUID = 1L;

    /**
     * 区划编号
     */
    private String code;

    /**
     * 父区划编号
     */
    private String parentCode;

    /**
     * 祖区划编号
     */
    private String ancestors;

    /**
     * 区划名称
     */
    private String name;

    /**
     * 省级区划编号
     */
    private String provinceCode;

    /**
     * 省级名称
     */
    private String provinceName;

    /**
     * 市级区划编号
     */
    private String cityCode;

    /**
     * 市级名称
     */
    private String cityName;

    /**
     * 区级区划编号
     */
    private String districtCode;

    /**
     * 区级名称
     */
    private String districtName;

    /**
     * 镇级区划编号
     */
    private String townCode;

    /**
     * 镇级名称
     */
    private String townName;

    /**
     * 村级区划编号
     */
    private String villageCode;

    /**
     * 村级名称
     */
    private String villageName;

    /**
     * 层级
     */
    private Integer regionLevel;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 范围
     */
    private String areaScope;

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setDistrictCode(String districtCode) {
        this.districtCode = districtCode;
    }

    public String getDistrictCode() {
        return districtCode;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setTownCode(String townCode) {
        this.townCode = townCode;
    }

    public String getTownCode() {
        return townCode;
    }

    public void setTownName(String townName) {
        this.townName = townName;
    }

    public String getTownName() {
        return townName;
    }

    public void setVillageCode(String villageCode) {
        this.villageCode = villageCode;
    }

    public String getVillageCode() {
        return villageCode;
    }

    public void setVillageName(String villageName) {
        this.villageName = villageName;
    }

    public String getVillageName() {
        return villageName;
    }

    public void setRegionLevel(Integer regionLevel) {
        this.regionLevel = regionLevel;
    }

    public Integer getRegionLevel() {
        return regionLevel;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getSort() {
        return sort;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setAreaScope(String areaScope) {
        this.areaScope = areaScope;
    }

    public String getAreaScope() {
        return areaScope;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("code", getCode())
                .append("parentCode", getParentCode())
                .append("ancestors", getAncestors())
                .append("name", getName())
                .append("provinceCode", getProvinceCode())
                .append("provinceName", getProvinceName())
                .append("cityCode", getCityCode())
                .append("cityName", getCityName())
                .append("districtCode", getDistrictCode())
                .append("districtName", getDistrictName())
                .append("townCode", getTownCode())
                .append("townName", getTownName())
                .append("villageCode", getVillageCode())
                .append("villageName", getVillageName())
                .append("regionLevel", getRegionLevel())
                .append("sort", getSort())
                .append("longitude", getLongitude())
                .append("latitude", getLatitude())
                .append("areaScope", getAreaScope())
                .toString();
    }
}
